package com.test.fileapplication.util;


import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import java.io.Serializable;

@Entity
public class RegionEntity implements Serializable {
    private static final long serialVersionUID = 1745908068577534456L;
    /**
     * 地域ID
     */
    @Id
    private String areaId;
    /**
     * 地域层级
     */
    private Integer areaLevel;
    /**
     * 地域名称
     */
    private String areaName;
    /**
     * 所属数据湖ID
     */
    private String dlId;
    /**
     * 经纬度
     */
    private String location;
    /**
     * 父地域ID
     */
    private String parentAreaId;

    @Generated(hash = 108683669)
    public RegionEntity(String areaId, Integer areaLevel, String areaName,
                        String dlId, String location, String parentAreaId) {
        this.areaId = areaId;
        this.areaLevel = areaLevel;
        this.areaName = areaName;
        this.dlId = dlId;
        this.location = location;
        this.parentAreaId = parentAreaId;
    }

    @Generated(hash = 808960108)
    public RegionEntity() {
    }

    public String getAreaId() {
        return this.areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public Integer getAreaLevel() {
        return this.areaLevel;
    }

    public void setAreaLevel(Integer areaLevel) {
        this.areaLevel = areaLevel;
    }

    public String getAreaName() {
        return this.areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getDlId() {
        return this.dlId;
    }

    public void setDlId(String dlId) {
        this.dlId = dlId;
    }

    public String getLocation() {
        return this.location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getParentAreaId() {
        return this.parentAreaId;
    }

    public void setParentAreaId(String parentAreaId) {
        this.parentAreaId = parentAreaId;
    }

    @Override
    public String toString() {
        return areaName;
    }
}
